<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class SeedOriginurlsData extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $now = \Carbon\Carbon::now();
        DB::table('originurls')->insert([
            [
                'url' => 'https://www.qqyou.com/touxiang/nvsheng/',
                'status' => 0,
                'rate' => 60,
                'title' => 'Q友网女生头像',
                'category_id' => 2,
                'created_at' => $now,
                'updated_at' => $now
            ],
            [
                'url' => 'https://www.qqyou.com/touxiang/nansheng/',
                'status' => 0,
                'rate' => 60,
                'title' => 'Q友网男生头像',
                'category_id' => 1,
                'created_at' => $now,
                'updated_at' => $now
            ],
            [
                'url' => 'https://www.qqyou.com/touxiang/qinglv/',
                'status' => 0,
                'rate' => 60,
                'title' => 'Q友网情侣头像',
                'category_id' => 4,
                'created_at' => $now,
                'updated_at' => $now
            ],
            [
                'url' => 'https://www.qqyou.com/touxiang/katong/',
                'status' => 0,
                'rate' => 60,
                'title' => 'Q友网动漫头像',
                'category_id' => 3,
                'created_at' => $now,
                'updated_at' => $now
            ],
            [
                'url' => 'https://www.woyaogexing.com/touxiang/katong/',
                'status' => 0,
                'rate' => 60,
                'title' => '我要个性网动漫头像',
                'category_id' => 3,
                'created_at' => $now,
                'updated_at' => $now
            ],
            [
                'url' => 'https://www.woyaogexing.com/touxiang/qinglv/',
                'status' => 0,
                'rate' => 60,
                'title' => '我要个性网情侣头像',
                'category_id' => 4,
                'created_at' => $now,
                'updated_at' => $now
            ],
        ]);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::table('originurls')->truncate();
    }
}
